package com.javafactroy.kunlong.data.entity;

import com.javafactroy.kunlong.base.dto.TQueryParam;
import lombok.Data;

import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;
import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import io.swagger.annotations.ApiModelProperty;
/**
*  @author raymond.lei@163.com
*  @date   2023-11-30 10:54:35
*  @file   DrGroupApiEntity.java
*  @company com.javafactroy.kunlong
*
*/
@Data
@Table(name="dr_group")
@ApiModel("组")
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(18)
public class DrGroupApiEntity   extends PageInfoDto {
    private static final long serialVersionUID = 1L; //一会就说这个是做什么的

    public final static String pkeyField = "id";
    public final static String pkeyProp  = "id";
    @Data
    public static class DrGroupQueryParam extends TQueryParam<DrGroupApiEntity> {
        public DrGroupQueryParam() {
            param = new DrGroupApiEntity();
        }
    }

    		// id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("id")
		@Column(name="id")
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "Mysql")
		Long  id;

		// 父节点标识 dataType:bigint
		@ApiModelProperty(name="父节点标识")
		@ExcelProperty("父节点标识")
		@Column(name="parent_id")
		Long  parentId;

		// 部门标识 dataType:bigint
		@ApiModelProperty(name="部门标识")
		@ExcelProperty("部门标识")
		@Column(name="dept_id")
		Long  deptId;

		// 编号 dataType:varchar
		@ApiModelProperty(name="编号")
		@ExcelProperty("编号")
		@Column(name="code")
		String  code;

		// 名称 dataType:varchar
		@ApiModelProperty(name="名称")
		@ExcelProperty("名称")
		@Column(name="name")
		String  name;

		// 负责人 dataType:bigint
		@ApiModelProperty(name="负责人")
		@ExcelProperty("负责人")
		@Column(name="manager_id")
		Long  managerId;

		// 备注 dataType:varchar
		@ApiModelProperty(name="备注")
		@ExcelProperty("备注")
		@Column(name="remark")
		String  remark;



}